package day11;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Test2 {
    public static void main(String[] args) {
        String time = "2011-11-11";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        // ctrl + alt + t
        try {
            System.out.println(sdf.parse(time));
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
